from django.contrib import admin
from .models import *

# Register your models here.
class BasicIntroAdmin(admin.ModelAdmin):
    list_display = ('title', 'introduction')
admin.site.register(BasicIntro, BasicIntroAdmin)

class StructureIntroAdmin(admin.ModelAdmin):
    list_display = ('title', 'introduction')
admin.site.register(StructureIntro, StructureIntroAdmin)

class FieldTypeIntroAdmin(admin.ModelAdmin):
    list_display = ('field_type', 'introduction')
admin.site.register(FieldTypeIntro, FieldTypeIntroAdmin)

class TableDemoAdmin(admin.ModelAdmin):
    list_display = ('integer', 'boolean', 'date', 'char', 'text')
admin.site.register(TableDemo, TableDemoAdmin)

class StudentAdmin(admin.ModelAdmin):
    list_display = ('stu_id', 'name', 'gender', 'major')
admin.site.register(Student, StudentAdmin)